package com.stu.controller.counsellor;

import com.stu.Dto.EmpDTO;
import com.stu.result.Result;
import com.stu.serive.ClassInformationService;
import com.stu.serive.CounsellorINFService;
import com.stu.serive.CounsellorOperateService;
import com.stu.vo.ClassJobApplicationVo;
import com.stu.vo.EmpVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Slf4j
@RestController("CounsellorOperateController")
@RequestMapping("/counsellor")
public class CounsellorOperateController {

    @Autowired
    private CounsellorOperateService counsellorOperateService;

    /**1
     * 审核奖学金审批
     * @param result
     * @return
     */
//    @PostMapping("/examineScholarship")
//    private Result examineScholarship(@RequestParam Integer result, Integer id){
//        counsellorOperateService.examineScholarship(result, id);
//        return Result.success();
//    }

    /**2
     * 审核班干部申请
     * @param result
     * @param id
     * @return
     */
    @PostMapping("/examineClassJob")
    private Result examineClassJob(@RequestParam Integer result, Integer id){
        counsellorOperateService.examineClassJob(result, id);
        return Result.success();
    }

    /**3
     * 审核处分解除
     * @param result
     * @param id
     * @return
     */
//    @PostMapping("/examineViolation")
//    private Result examineViolation(@RequestParam Integer result, Integer id){
//        counsellorOperateService.examineViolation(result, id);
//        return Result.success();
//    }

    /**4
     * 审核请假
     * @param result
     * @param id
     * @return
     */
    @PostMapping("/examineExcuse")
    private Result examineExcuse(@RequestParam Integer result, Integer id){
        counsellorOperateService.examineExcuse(result, id);
        return Result.success();
    }


}
